package com.teacher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.teacher.pojo.dto.classteacher.ClassTeacherGetDto;
import com.teacher.pojo.entity.ClassTeacher;
import com.teacher.pojo.vo.classteacher.ClassTeacherGetVo;
import com.teacher.pojo.vo.classteacher.ClassTeacherListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zfm
 * @since 2021-07-18
 */
public interface ClassTeacherMapper extends BaseMapper<ClassTeacher> {

    IPage<ClassTeacherGetVo> getPage(@Param("page") Page<ClassTeacherGetVo> page, @Param("dto") ClassTeacherGetDto dto);

    /**
     * 班主任查询班级
     *
     * @param teacherKey
     * @return
     */
    List<ClassTeacherListVo> getClassTeacherList(@Param("teacherKey") String teacherKey);
}
